

<template>
    <view>
        <!-- qwe -->
        <!-- {{pdf}} -->
        <web-view v-if="pdf" :src="pdf?pdf:''"></web-view>
    </view>
</template>
<script>
export default {
    data() {
        return {
            pdf:''
        }
    },
    onLoad(option) {
        // let dataStr = decodeURIComponent(option.pdfPath);
        this.pdf = decodeURIComponent(option.pdfPath);
        
                uni.setNavigationBarTitle({
                    title: option.barTitle
                });
        console.log(this.pdf)
        // this.pdf=option.pdfPath
    },
    
}
</script>